package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catalog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author BuleSky
 * @email BuleSky@gmail.com
 * @date 2021-08-04 16:13:57
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

	/**
	 * 找到catalogId的完整路径
	 * [父/子/孙]
	 * @param catalogId
	 * @return
	 */
	Long[] findcatalogPath(Long catalogId);

	void updateCascde(CategoryEntity category);

	List<CategoryEntity> getLevel1Categorys();

	Map<String, List<Catalog2Vo>> getcatalogJSON();
}

